dayup=1
temp=1
study="a"
state="a"
unstudy="c"
for i in range(365):
    if state == study and(temp in [1,2,3]):
        dayup=dayup
        temp = (temp + 1) % 7
    elif state == study and(temp in [4,5,6,7]):
        dayup=dayup*1.01
        temp = (temp + 1) % 7
    elif state == unstudy:
        temp = 0
print("连续学习365天后的能力值为{:.3f}".format(dayup))

